<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>NGUI: Next-Gen UI kit: NGUIContextMenu Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">NGUI: Next-Gen UI kit
   &#160;<span id="projectnumber">3.7.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_n_g_u_i_context_menu.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_n_g_u_i_context_menu-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">NGUIContextMenu Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This editor helper class makes it easy to create and show a context menu. It ensures that it's possible to add multiple items with the same name.  
 <a href="class_n_g_u_i_context_menu.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4f5d022eb56d73364ff396c12d265a02"><td class="memItemLeft" align="right" valign="top">delegate <a class="el" href="class_u_i_widget.html">UIWidget</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_g_u_i_context_menu.html#a4f5d022eb56d73364ff396c12d265a02">AddFunc</a> (GameObject go)</td></tr>
<tr class="separator:a4f5d022eb56d73364ff396c12d265a02"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:acf3769cd3d6e111535ac754f5b058984"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_g_u_i_context_menu.html#acf3769cd3d6e111535ac754f5b058984">Clear</a> ()</td></tr>
<tr class="memdesc:acf3769cd3d6e111535ac754f5b058984"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear the context menu list.  <a href="#acf3769cd3d6e111535ac754f5b058984">More...</a><br /></td></tr>
<tr class="separator:acf3769cd3d6e111535ac754f5b058984"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d2c8abce1c59f5978f9af71268d0c30"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_g_u_i_context_menu.html#a4d2c8abce1c59f5978f9af71268d0c30">AddItem</a> (string item, bool isChecked, GenericMenu.MenuFunction2 callback, object param)</td></tr>
<tr class="memdesc:a4d2c8abce1c59f5978f9af71268d0c30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a new context menu entry.  <a href="#a4d2c8abce1c59f5978f9af71268d0c30">More...</a><br /></td></tr>
<tr class="separator:a4d2c8abce1c59f5978f9af71268d0c30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac36445f983d469a3c2e8e32a97d00001"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_g_u_i_context_menu.html#ac36445f983d469a3c2e8e32a97d00001">AddChild</a> (object obj)</td></tr>
<tr class="memdesc:ac36445f983d469a3c2e8e32a97d00001"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper function called by the menu that in turn calls the correct callback.  <a href="#ac36445f983d469a3c2e8e32a97d00001">More...</a><br /></td></tr>
<tr class="separator:ac36445f983d469a3c2e8e32a97d00001"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81cca8bec5bad4d89ad927ce13a4877c"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_g_u_i_context_menu.html#a81cca8bec5bad4d89ad927ce13a4877c">AddChildWidget</a> (string item, bool isChecked, <a class="el" href="class_n_g_u_i_context_menu.html#a4f5d022eb56d73364ff396c12d265a02">AddFunc</a> callback)</td></tr>
<tr class="memdesc:a81cca8bec5bad4d89ad927ce13a4877c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a new context menu entry.  <a href="#a81cca8bec5bad4d89ad927ce13a4877c">More...</a><br /></td></tr>
<tr class="separator:a81cca8bec5bad4d89ad927ce13a4877c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0eaa48f72a4208549499cc321085d758"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_g_u_i_context_menu.html#a0eaa48f72a4208549499cc321085d758">AddSibling</a> (object obj)</td></tr>
<tr class="memdesc:a0eaa48f72a4208549499cc321085d758"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper function called by the menu that in turn calls the correct callback.  <a href="#a0eaa48f72a4208549499cc321085d758">More...</a><br /></td></tr>
<tr class="separator:a0eaa48f72a4208549499cc321085d758"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d8740d788edcad4cc7ffdeb2cc9e0fc"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_g_u_i_context_menu.html#a4d8740d788edcad4cc7ffdeb2cc9e0fc">AddSiblingWidget</a> (string item, bool isChecked, <a class="el" href="class_n_g_u_i_context_menu.html#a4f5d022eb56d73364ff396c12d265a02">AddFunc</a> callback)</td></tr>
<tr class="memdesc:a4d8740d788edcad4cc7ffdeb2cc9e0fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a new context menu entry.  <a href="#a4d8740d788edcad4cc7ffdeb2cc9e0fc">More...</a><br /></td></tr>
<tr class="separator:a4d8740d788edcad4cc7ffdeb2cc9e0fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a338c12e79e6aaf6c0219014d64c0f34a"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_g_u_i_context_menu.html#a338c12e79e6aaf6c0219014d64c0f34a">AddCommonItems</a> (GameObject target)</td></tr>
<tr class="memdesc:a338c12e79e6aaf6c0219014d64c0f34a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add commonly NGUI context menu options.  <a href="#a338c12e79e6aaf6c0219014d64c0f34a">More...</a><br /></td></tr>
<tr class="separator:a338c12e79e6aaf6c0219014d64c0f34a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ab14b6ca71d82f478ddf600ae8df790"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_g_u_i_context_menu.html#a4ab14b6ca71d82f478ddf600ae8df790">AddHelp</a> (GameObject go, bool addSeparator)</td></tr>
<tr class="memdesc:a4ab14b6ca71d82f478ddf600ae8df790"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add help options based on the components present on the specified game object.  <a href="#a4ab14b6ca71d82f478ddf600ae8df790">More...</a><br /></td></tr>
<tr class="separator:a4ab14b6ca71d82f478ddf600ae8df790"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab17ade0afd3a886af8e43e2a0ca4aef8"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_g_u_i_context_menu.html#ab17ade0afd3a886af8e43e2a0ca4aef8">AddDisabledItem</a> (string item)</td></tr>
<tr class="memdesc:ab17ade0afd3a886af8e43e2a0ca4aef8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a new disabled context menu entry.  <a href="#ab17ade0afd3a886af8e43e2a0ca4aef8">More...</a><br /></td></tr>
<tr class="separator:ab17ade0afd3a886af8e43e2a0ca4aef8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97b1d67c0c678840d8f9614b47250f4c"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_g_u_i_context_menu.html#a97b1d67c0c678840d8f9614b47250f4c">AddSeparator</a> (string path)</td></tr>
<tr class="memdesc:a97b1d67c0c678840d8f9614b47250f4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a separator to the menu.  <a href="#a97b1d67c0c678840d8f9614b47250f4c">More...</a><br /></td></tr>
<tr class="separator:a97b1d67c0c678840d8f9614b47250f4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a8666fb585afc924691d27790464f31"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_n_g_u_i_context_menu.html#a3a8666fb585afc924691d27790464f31">Show</a> ()</td></tr>
<tr class="memdesc:a3a8666fb585afc924691d27790464f31"><td class="mdescLeft">&#160;</td><td class="mdescRight">Show the context menu with all the added items.  <a href="#a3a8666fb585afc924691d27790464f31">More...</a><br /></td></tr>
<tr class="separator:a3a8666fb585afc924691d27790464f31"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This editor helper class makes it easy to create and show a context menu. It ensures that it's possible to add multiple items with the same name. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ac36445f983d469a3c2e8e32a97d00001"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void NGUIContextMenu.AddChild </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Wrapper function called by the menu that in turn calls the correct callback. </p>

</div>
</div>
<a class="anchor" id="a81cca8bec5bad4d89ad927ce13a4877c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void NGUIContextMenu.AddChildWidget </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isChecked</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_n_g_u_i_context_menu.html#a4f5d022eb56d73364ff396c12d265a02">AddFunc</a>&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add a new context menu entry. </p>

</div>
</div>
<a class="anchor" id="a338c12e79e6aaf6c0219014d64c0f34a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void NGUIContextMenu.AddCommonItems </td>
          <td>(</td>
          <td class="paramtype">GameObject&#160;</td>
          <td class="paramname"><em>target</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add commonly NGUI context menu options. </p>

</div>
</div>
<a class="anchor" id="ab17ade0afd3a886af8e43e2a0ca4aef8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void NGUIContextMenu.AddDisabledItem </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add a new disabled context menu entry. </p>

</div>
</div>
<a class="anchor" id="a4f5d022eb56d73364ff396c12d265a02"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">delegate <a class="el" href="class_u_i_widget.html">UIWidget</a> NGUIContextMenu.AddFunc </td>
          <td>(</td>
          <td class="paramtype">GameObject&#160;</td>
          <td class="paramname"><em>go</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a4ab14b6ca71d82f478ddf600ae8df790"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void NGUIContextMenu.AddHelp </td>
          <td>(</td>
          <td class="paramtype">GameObject&#160;</td>
          <td class="paramname"><em>go</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>addSeparator</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add help options based on the components present on the specified game object. </p>

</div>
</div>
<a class="anchor" id="a4d2c8abce1c59f5978f9af71268d0c30"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void NGUIContextMenu.AddItem </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isChecked</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GenericMenu.MenuFunction2&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>param</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add a new context menu entry. </p>

</div>
</div>
<a class="anchor" id="a97b1d67c0c678840d8f9614b47250f4c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void NGUIContextMenu.AddSeparator </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add a separator to the menu. </p>

</div>
</div>
<a class="anchor" id="a0eaa48f72a4208549499cc321085d758"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void NGUIContextMenu.AddSibling </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Wrapper function called by the menu that in turn calls the correct callback. </p>

</div>
</div>
<a class="anchor" id="a4d8740d788edcad4cc7ffdeb2cc9e0fc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void NGUIContextMenu.AddSiblingWidget </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>item</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isChecked</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_n_g_u_i_context_menu.html#a4f5d022eb56d73364ff396c12d265a02">AddFunc</a>&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add a new context menu entry. </p>

</div>
</div>
<a class="anchor" id="acf3769cd3d6e111535ac754f5b058984"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void NGUIContextMenu.Clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Clear the context menu list. </p>

</div>
</div>
<a class="anchor" id="a3a8666fb585afc924691d27790464f31"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void NGUIContextMenu.Show </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Show the context menu with all the added items. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/Projects/NGUI/Assets/NGUI/Scripts/Editor/<a class="el" href="_n_g_u_i_context_menu_8cs.html">NGUIContextMenu.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_n_g_u_i_context_menu.html">NGUIContextMenu</a></li>
    <li class="footer">Generated on Sat Sep 13 2014 05:29:17 for NGUI: Next-Gen UI kit by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
